/**
 * Test setup file for Bun
 * 
 * This file configures the test environment for the protoactor-ts project
 */

// Set up global test environment variables here if needed
process.env.NODE_ENV = 'test';

// Extend Bun's testing capabilities with any custom matchers or setup
declare global {
  namespace Bun {
    interface TestContext {
      // Add any test context extensions here
    }
  }
}

// You can add any test helpers or setup code here
export function setupTest() {
  // Setup code that should run before each test
  return {
    // Return any test utilities or context
    teardown: () => {
      // Cleanup code that should run after each test
    }
  };
}

// Export utility functions for tests
export function createMockActorSystem() {
  // Create a mock actor system for testing
  return {
    root: {
      spawn: () => ({ id: 'mock-id', address: 'mock-address' }),
      spawnNamed: () => ({ id: 'mock-id', address: 'mock-address' }),
      stop: () => {},
    },
  };
} 